package com.slimerevenge.controller;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Contact;
import com.badlogic.gdx.physics.box2d.ContactImpulse;
import com.badlogic.gdx.physics.box2d.ContactListener;
import com.badlogic.gdx.physics.box2d.Manifold;
import com.badlogic.gdx.physics.box2d.World;
import com.slimerevenge.model.Level;
import com.slimerevenge.model.Player;
import com.slimerevenge.model.Player.State;

public class WorldController implements ContactListener{
	
	private Level level;
	private Player player;
	private World world;
	
	public WorldController(Level level) {
		this.level = level;
		this.player = level.getPlayer();
		this.world = new World(new Vector2(0.0f, -15f), true);
	 }
	
	@Override
	public void beginContact(Contact contact) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void endContact(Contact contact) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void preSolve(Contact contact, Manifold oldManifold) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void postSolve(Contact contact, ContactImpulse impulse) {
		// TODO Auto-generated method stub
		
	}
	
	/*public void updateInput() {
		if(Gdx.input.justTouched()){			
			//player.getPosition().y += 0.1; 
			player.playerJump();
			//Gdx.app.log("touchUped", Gdx.input.getX() + " and " + Gdx.input.getY());
		}

	}
	*/
	

}
